<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>AI面试官 - 账号登录</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet">
    <link href="https://cdn.jsdelivr.net/npm/boxicons@2.0.7/css/boxicons.min.css" rel="stylesheet">
    <link href="/static/css/style.css" rel="stylesheet">
    <link href="/static/css/auth.css" rel="stylesheet">
</head>
<body class="ai-bg">
    <div class="particles">
        <div class="particle" style="left:10%;top:20%;width:8px;height:8px;animation-delay:0s"></div>
        <div class="particle" style="left:20%;top:40%;width:12px;height:12px;animation-delay:1s"></div>
        <div class="particle" style="left:80%;top:60%;width:10px;height:10px;animation-delay:2s"></div>
        <div class="particle" style="right:20%;top:30%;width:6px;height:6px;animation-delay:3s"></div>
        <div class="particle" style="right:30%;bottom:20%;width:14px;height:14px;animation-delay:4s"></div>
    </div>
    <div class="container">
        <div class="row vh-100 align-items-center justify-content-center">
            <div class="col-md-5">
                <div class="login-card">
                    <div class="card-body p-4">
                        <h1 class="text-center">
                            <i class='bx bx-bot'></i>AI面试官
                        </h1>

                        <form id="loginForm" action="/api/login" method="POST">
                            <div class="mb-4">
                                <input type="email"
                                       name="email"
                                       class="form-control"
                                       placeholder="请输入邮箱"
                                       pattern="[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}"
                                       required>
                            </div>

                            <div class="mb-4">
                                <input type="password" 
                                    class="form-control" 
                                    placeholder="请输入密码"
                                    name="password"
                                    required
                                    style="z-index: 1; position: relative;">
                            </div>
                            <div class="mb-4 d-flex justify-content-between" style="z-index: 1; position: relative;">
                                <div class="form-check">
                                    <input type="checkbox" class="form-check-input" id="rememberMe">
                                    <label class="form-check-label" for="rememberMe">记住我</label>
                                </div>
                                <a href="#" class="text-decoration-none">忘记密码？</a>
                            </div>
                            <button type="submit" class="btn btn-primary w-100 mb-3">登录</button>
                            <div class="text-center">
                                <a href="/registerView" class="text-decoration-none">还没有账号？立即注册</a>
                            </div>
                        </form>

                    </div>
                </div>
            </div>
        </div>
    </div>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script>
    <script src="/static/js/auth.js"></script>

</body>
</html>